This is the README file for the article "Crisis Management: Personal Financial Well-Being and Public Attitudes Toward Government Intervention".

Contact:
Tyler Girard
tgirard@purdue.edu

To reproduce the analysis in the paper, the accompanying files include:
- COVID Survey Raw Data.dta (original data, found in "1 Original Data" folder)
- COVID Clean Survey Data.dta (cleaned survey data, produced using "Clean Survey Data.do" file, found in "2 Clean Data" folder)
- Clean Survey Data (MI Object).RData (the R object produced using multiple imputation, produced using the "Analysis for Main Manuscript and SI File.R" file, data found in "2 Clean Data" folder)
- Clean Survey Data.do (Stata do file needed to clean raw survey data, found in "2 Clean Data" folder)
- Analysis for Main Manuscript and SI File.R (R file that uses clean survey data file to do full analysis, including multiple imputation, and generate all reported tables/figures)

The most direct way to reproduce the analysis is to use the "Analysis for Main Manuscript and SI File.R" file, load the "COVID Clean Survey Data.dta" and "Clean Survey Data (MI Object).RData"
files, and run the full R script.

The Stata portion of the project was completed using Stata 15.1.

The R session information is provided below:

R version 4.1.2 (2021-11-01)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19043)

Matrix products: default

locale:
[1] LC_COLLATE=English_Canada.1252  LC_CTYPE=English_Canada.1252    LC_MONETARY=English_Canada.1252 LC_NUMERIC=C                    LC_TIME=English_Canada.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
 [1] ggpubr_0.4.0       kableExtra_1.3.4   ggstance_0.3.5     ggeffects_1.1.1    table1_1.4.2       modelsummary_0.9.6 forcats_0.5.1      stringr_1.4.0      dplyr_1.0.8        purrr_0.3.4
[11] readr_2.1.2        tidyr_1.1.4        tibble_3.1.6       ggplot2_3.3.5      tidyverse_1.3.1    mitools_2.4        mice_3.14.0        MASS_7.3-55        rio_0.5.29         here_1.0.1
[21] tictoc_1.0.1

loaded via a namespace (and not attached):
  [1] minqa_1.2.4        colorspace_2.0-2   ggsignif_0.6.3     ellipsis_0.3.2     sjlabelled_1.1.8   rprojroot_2.0.2    snakecase_0.11.0   htmlTable_2.3.0    fs_1.5.2
 [10] rstudioapi_0.13    farver_2.1.0       fansi_0.5.0        lubridate_1.8.0    ranger_0.13.1      xml2_1.3.2         splines_4.1.2      knitr_1.36         effects_4.2-0
 [19] Formula_1.2-4      jsonlite_1.7.2     nloptr_1.2.2.3     broom_0.7.10       dbplyr_2.1.1       maditr_0.8.2       compiler_4.1.2     httr_1.4.2         backports_1.4.0
 [28] assertthat_0.2.1   Matrix_1.3-4       fastmap_1.1.0      survey_4.1-1       cli_3.1.0          htmltools_0.5.2    tools_4.1.2        gtable_0.3.0       glue_1.6.2
 [37] tables_0.9.6       Rcpp_1.0.7         carData_3.0-4      cellranger_1.1.0   jquerylib_0.1.4    vctrs_0.3.8        svglite_2.0.0      nlme_3.1-153       insight_0.16.0
 [46] lmtest_0.9-39      xfun_0.28          ps_1.6.0           openxlsx_4.2.4     lme4_1.1-27.1      rvest_1.0.2        lifecycle_1.0.1    rstatix_0.7.0      zoo_1.8-9
 [55] scales_1.1.1       hms_1.1.1          curl_4.3.2         gridExtra_2.3      sass_0.4.0         stringi_1.7.5      checkmate_2.0.0    boot_1.3-28        zip_2.2.0
 [64] rlang_1.0.2        pkgconfig_2.0.3    systemfonts_1.0.3  matrixStats_0.61.0 evaluate_0.14      lattice_0.20-45    htmlwidgets_1.5.4  labeling_0.4.2     cowplot_1.1.1
 [73] tidyselect_1.1.1   processx_3.5.2     magrittr_2.0.2     R6_2.5.1           magick_2.7.3       expss_0.11.1       generics_0.1.1     DBI_1.1.1          pillar_1.6.4
 [82] haven_2.4.3        foreign_0.8-81     withr_2.4.2        abind_1.4-5        survival_3.2-13    nnet_7.3-16        car_3.0-12         modelr_0.1.8       crayon_1.4.2
 [91] utf8_1.2.2         tzdb_0.2.0         rmarkdown_2.11     grid_4.1.2         readxl_1.3.1       data.table_1.14.2  callr_3.7.0        reprex_2.0.1       digest_0.6.28
[100] webshot_0.5.2      munsell_0.5.0      viridisLite_0.4.0  bslib_0.3.1
